#导包

import requests
#发送http请求，访问百度
# resp=requests.get(url="https://hmshop-test.itheima.net/index.php/Home/Goods/search.html?q=iPhone")
resp=requests.post(url="https://hmshop-test.itheima.net/index.php?m=Home&c=User&a=do_login&t=0.8745747375417874",
                   headers={"content-type":"application/x-www-form-urlencoded"},
                   data={"username":"17367072500","password":"12345621","verify_code":"8888"})
#打印相应结果
print(resp.text)
print(resp.json())